package com.xcx;

import com.github.tobato.fastdfs.FdfsClientConfig;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.jmx.support.RegistrationPolicy;

@Slf4j
@MapperScan("com.xcx.dao")
@Import(FdfsClientConfig.class)
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
@SpringBootApplication()
public class CommonServerApplication {


    public static void main(String[] args) {
        log.info("xcx-common-server start");
        SpringApplication.run(CommonServerApplication.class, args);
        log.info("xcx-common-server start success");
    }
}
